package com.chengwang.bookstory.mapper;

import com.chengwang.bookstory.pojo.MyShop;
import com.chengwang.bookstory.pojo.ShopList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface ShopMapper {
    int add(String userAccount, String bookId, int shopNumber, String dataTime);

    List<ShopList> queryAllShop(String userAccount);

    List<MyShop> queryAllMyShop(String userAccount);

    void deleteAll(String userAccount);

    void delById(String userAccount, String bookId,String time);

    void update(@Param("booksId") List<String> booksId,@Param("userAccount") String userAccount);


    List<MyShop> queryMyShopById(@Param("booksId") List<String> booksId,@Param("userAccount") String userAccount);

    void updateById(@Param("booksId") List<String> booksId,@Param("userAccount") String userAccount);

    List<MyShop> queryMyShopByidDataMap(@Param("idDataMap") Map idDataMap,@Param("userAccount") String userAccount);
}
